﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SyncWaterForPeople.Model
{
    [Serializable]
    public class KardexWS
    {
        public int KardexID { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string WaterMeasurer { get; set; } //Medidor
        public string Allotment { get; set; }
        public string Square { get; set; }
		public bool HasAWaterMeasurer { get; set; }

        public KardexWS()
        { }
    }

    [Serializable]
    public class UserWS
    {
        public string UserID { get; set; }
        public string Name { get; set; }
        public string Login { get; set; }
        public string Password { get; set; }

        public UserWS()
        { }
    }

    [Serializable]
    public class WaterReadingWS
    {
		public string WaterReadingId { get; set; }
		public string ReaderId { get; set; }
		public int KardexId { get; set; }
		public double CurrentMeasurerRead { get; set; }
		public double PreviousMeasurerRead { get; set; }
		public decimal PaidAmount { get; set; }
		public DateTime ReadingDate { get; set; }
		public decimal WaterFare { get; set; } // tarifa de agua
		public short ReadingState { get; set; } // estado de lectura : 0-nuevo, 1-modificado, 2-cobrado
		public bool IsValidReading { get; set; }
		public int? WaterCollectControlId { get; set; }

        public WaterReadingWS()
        { }
    }

    [Serializable]
    public class CutSupplyWS
    {
        public int CutSupplyID { get; set; }
        public int KardexId { get; set; }
        public int CurrentReading { get; set; }
        public DateTime SystemDate { get; set; }

        public CutSupplyWS()
        { }
    }

    [Serializable]
    public class ReconnectionWS
    {
        public int ReconnectionID { get; set; }
        public int KardexId { get; set; }
        public int CurrentReading { get; set; }
        public bool Enabled { get; set; }
        public DateTime SystemDate { get; set; }

        public ReconnectionWS()
        { }
    }
}